<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface OrganizationsDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Organizations 
	 */
	public function load($organization);

	/**
	 * Get all records from table
	 */
	public function queryAll($organization);
	
	public function queryAllsearchby($organization);
	
	public function queryAllCount($organization);
	
	public function searchby_count($organization);
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param organization primary key
 	 */
	public function delete($organization_id);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Organizations organization
 	 */
	public function insert($organization);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Organizations organization
 	 */
	public function update($organization);
	
	public function update_status($organization);
	
	//for updating status in admin panel when admin deletes 
	
	//public function delete($organization);

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByOrganizationName($value);

	public function queryByOrganizationUrl($value);

	public function queryByStatus($value);

	public function queryByCreatedDate($value);

	public function queryByUpdatedDate($value);


	public function deleteByOrganizationName($value);

	public function deleteByOrganizationUrl($value);

	public function deleteByStatus($value);

	public function deleteByCreatedDate($value);

	public function deleteByUpdatedDate($value);


}
?>